﻿<%@ Page Language="C#" MasterPageFile="~/SimplePMTModal.Master" AutoEventWireup="true" CodeBehind="AdminUserInfo.aspx.cs" Inherits="SimplePMT.AdminUserInfo" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainContent">
    <%= viewRendered %>
<script>
    function saveChanges() {
        var df = document.userForm;
        SimplePMT.AdminUserInfo.SaveChanges(parseInt(df.MemberID.value), df.FirstName.value, df.LastName.value, df.Username.value, df.Password.value, df.EmailAddress.value, df.Phone.value, df.ContactInfo.checked, df.Terminated.checked, df.ReadOnly.checked, df.AdminAccess.checked, function(response) {
            if (response.error != null) {
                alert(response.error.Message);
            } else {
                alert('Changes Saved Successfully.');
                top.win.close();
            }
        });
    }
</script>
</asp:Content>